package com.example.test.entity;

public class News {
    private Integer id ;
    private String type ;
    private String first_title ;
    private String second_title ;
    private String img ;
    private String texts ;
    private String publisher ;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFirst_title() {
        return first_title;
    }

    public void setFirst_title(String first_title) {
        this.first_title = first_title;
    }

    public String getSecond_title() {
        return second_title;
    }

    public void setSecond_title(String second_title) {
        this.second_title = second_title;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getTexts() {
        return texts;
    }

    public void setTexts(String texts) {
        this.texts = texts;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    @Override
    public String toString() {
        return "news{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", first_title='" + first_title + '\'' +
                ", second_title='" + second_title + '\'' +
                ", img='" + img + '\'' +
                ", texts='" + texts + '\'' +
                ", publisher='" + publisher + '\'' +
                '}';
    }

    public News(String type , String first_title , String second_title , String img , String texts , String publisher){
        this.type = type ;
        this.first_title = first_title ;
        this.second_title = second_title ;
        this.img = img ;
        this.texts = texts ;
        this.publisher = publisher ;
    }
}
